﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Theme : Form
    {
        Form1 form1;
        public Theme(Form1 formm1)
        {
            form1 = formm1;
            this.CenterToParent();
            InitializeComponent();

            pictureBox1.BackColor = Color.LightBlue;
            pictureBox2.BackColor = Color.LemonChiffon;
            pictureBox3.BackColor = Color.LightGray;


            pictureBox6.BackColor = Color.LimeGreen;
            pictureBox5.BackColor = Color.PapayaWhip;
            pictureBox4.BackColor = Color.LightYellow;

            pictureBox9.BackColor = Color.LightPink;
            pictureBox8.BackColor = Color.PowderBlue;
            pictureBox7.BackColor = Color.MistyRose;

            pictureBox12.BackColor = Color.SteelBlue;
            pictureBox11.BackColor = Color.BurlyWood;
            pictureBox10.BackColor = Color.Tomato;

            pictureBox15.BackColor = Color.Purple;
            pictureBox14.BackColor = Color.Plum;
            pictureBox13.BackColor = Color.LavenderBlush;

            pictureBox18.BackColor = Color.PaleGoldenrod;
            pictureBox17.BackColor = Color.PaleTurquoise;
            pictureBox16.BackColor = Color.Chocolate;

        

           

        
        }
        public Color parentBtn = Color.LightBlue;
        public Color childBtn = Color.LemonChiffon;
       public Color formBackground;


       public void update_form1()
       {
           form1.parentButtonColor = parentBtn;
           form1.childButtonColor = childBtn;
           form1.BackColor= formBackground;
           form1.lastActionText.BackColor = formBackground;
           form1.pictureAni.BackColor = formBackground;
           form1.pictureStill.BackColor = formBackground;
           form1.reColorButtons();
       }

        private void pictureBox3_MouseClick(object sender, MouseEventArgs e)
        {
            parentBtn = Color.LightBlue;
            childBtn = Color.LemonChiffon;
            formBackground = Color.Empty;
            update_form1();
        }

        private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
        {
            parentBtn = Color.LightBlue;
            childBtn = Color.LemonChiffon;
            formBackground = Color.Empty;
            update_form1();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LightBlue;
            childBtn = Color.LemonChiffon;
            formBackground = Color.Empty;
            update_form1();
        }

        private void pictureBox6_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LimeGreen;
            childBtn = Color.PapayaWhip;
            formBackground = Color.LightYellow;
            update_form1();
        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LimeGreen;
            childBtn = Color.PapayaWhip;
            formBackground = Color.LightYellow;
            update_form1();
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LimeGreen;
            childBtn = Color.PapayaWhip;
            formBackground = Color.LightYellow;
            update_form1();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           
            Close();
        }

        private void pictureBox9_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LightPink;
            childBtn = Color.PowderBlue;
            formBackground = Color.MistyRose;
            update_form1();
        }

        private void pictureBox8_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LightPink;
            childBtn = Color.PowderBlue;
            formBackground = Color.MistyRose;
            update_form1();
        }

        private void pictureBox7_Click(object sender, EventArgs e)
        {
            parentBtn = Color.LightPink;
            childBtn = Color.PowderBlue;
            formBackground = Color.MistyRose;
            update_form1();
        }

        private void pictureBox12_Click(object sender, EventArgs e)
        {
            parentBtn = Color.SteelBlue;
            childBtn = Color.BurlyWood;
            formBackground = Color.Tomato;
            update_form1();
        }

        private void pictureBox11_Click(object sender, EventArgs e)
        {
            parentBtn = Color.SteelBlue;
            childBtn = Color.BurlyWood;
            formBackground = Color.Tomato;
            update_form1();
        }

        private void pictureBox10_Click(object sender, EventArgs e)
        {
            parentBtn = Color.SteelBlue;
            childBtn = Color.BurlyWood;
            formBackground = Color.Tomato;
            update_form1();
        }

        private void pictureBox15_Click(object sender, EventArgs e)
        {
            parentBtn = Color.Purple;
            childBtn = Color.Plum;
            formBackground = Color.LavenderBlush;
            update_form1();
        }

        private void pictureBox14_Click(object sender, EventArgs e)
        {
            parentBtn = Color.Purple;
            childBtn = Color.Plum;
            formBackground = Color.LavenderBlush;
            update_form1();
        }

        private void pictureBox13_Click(object sender, EventArgs e)
        {
            parentBtn = Color.Purple;
            childBtn = Color.Plum;
            formBackground = Color.LavenderBlush;
            update_form1();
        }

        private void pictureBox18_Click(object sender, EventArgs e)
        {
            parentBtn = Color.PaleGoldenrod;
            childBtn = Color.PaleTurquoise;
            formBackground = Color.Chocolate;
            update_form1();
        }

        private void pictureBox17_Click(object sender, EventArgs e)
        {
            parentBtn = Color.PaleGoldenrod;
            childBtn = Color.PaleTurquoise;
            formBackground = Color.Chocolate;
            update_form1();
        }

        private void pictureBox16_Click(object sender, EventArgs e)
        {
            parentBtn = Color.PaleGoldenrod;
            childBtn = Color.PaleTurquoise;
            formBackground = Color.Chocolate;
            update_form1();
        }
    }
}
